import {Component, OnInit} from '@angular/core';
import {UsersService} from '../users.service';
import {User} from "../user";

@Component({
  selector: 'app-user-list',
  templateUrl: './user-list.component.html',
  styleUrls: ['./user-list.component.scss']
})
export class UserListComponent implements OnInit {

  info: string = 'default info.'
  user: any = {}

  constructor(private usersService: UsersService) {
  }

  ngOnInit(): void {
    // this.usersService.userInfo().subscribe(data => {
    //   this.user = data
    // })

    let hello = this.usersService.hello();
    const x = hello[0]
    const y = hello[1]

    console.error(x, y)
  }

}
